package com.alibaba.web.config;

import com.alibaba.api.pojos.User;

public class UserThreadLocal {
    private static final ThreadLocal<User> THREAD_LOCAL = new ThreadLocal<>();

    public static User get() {
       return THREAD_LOCAL.get();
    }

    public static void set(User user) {
        THREAD_LOCAL.set(user);
    }
}
